package com.xixilala.video.practices

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.xixilala.video.base.BaseFragment
import com.xixilala.video.databinding.FragmentPractice3Binding

/**
 * 在 Android 平台使用 Camera API 进行视频的采集，分别使用 SurfaceView、TextureView 来预览 Camera 数据，取到 NV21 的数据回调
 */
class Practice3Fragment : BaseFragment() {

    private lateinit var mBinding: FragmentPractice3Binding

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
        mBinding = FragmentPractice3Binding.inflate(inflater, container, false)
        return mBinding.root
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)

        mBinding.tvTexture.setOnClickListener {

        }
    }
}